/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.calculator.config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.calculator.calcu.Calculator;
import za.ac.cput.calculator.calcu.Impl.CalculatorImpl;
import za.ac.cput.calculator.calcu.Impl.ImprCalculatorImple;

/**
 *
 * @author Avis
 */
@Configurable
public class AppConfi 
{
    @Bean(name ="oldCalcu")
    public Calculator calculator() 
    {
        return new CalculatorImpl();
    }
    @Bean
    public Calculator newCalcu() 
    {
        return new CalculatorImpl();
    }
    @Bean(name = "imprCalcu")
    public Calculator improvedCalculator() 
    {
        return new ImprCalculatorImple();
    }
}
